package com.tjetc.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data //自动生成getter setter toString 等方法
@NoArgsConstructor //自动生成无参构造方法
@AllArgsConstructor //自动生成全参构造方法
public class Player {
    private int id;
    private String name;
    private int age;
    private int height;
    private int weight;
    private int position;
    private int teamId;
    private int salary;
    private int likes;

    public Player(String name, int age, int height, int weight, int position, int teamId, int salary) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.position = position;
        this.teamId = teamId;
        this.salary = salary;
    }
}
